Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement procref instruction #1113

Merged
merged 6 commits into from
Oct 26, 2023
Merged

Implement procref instruction #1113

merged 6 commits into from
Oct 26, 2023

Conversation

Fumuran
Copy link
Contributor

@Fumuran Fumuran commented Oct 19, 2023

This PR adds a new procref instruction.
It is used as procref.<procedure_name> and it puts a hash of a given procedure onto the stack using four Push instructions.

TODO:

  • Write documentation for procref instruction.
  • Update changelog.

@Fumuran Fumuran requested a review from bobbinth October 19, 2023 23:48
@Fumuran Fumuran linked an issue Oct 19, 2023 that may be closed by this pull request
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you! I left one small comment (with a bigger question) inline.

Other than that, there are two more things we should do:

assembly/src/assembler/context.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you! I left a few more small comments inline.

miden/tests/integration/flow_control/mod.rs Outdated Show resolved Hide resolved
miden/tests/integration/flow_control/mod.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
assembly/src/assembler/context.rs Outdated Show resolved Hide resolved
@Fumuran Fumuran requested a review from bobbinth October 25, 2023 03:15
@Fumuran Fumuran requested a review from bobbinth October 25, 2023 16:17
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! Thank you!

@bobbinth bobbinth merged commit 6fd3cf6 into next Oct 26, 2023
15 checks passed
@bobbinth bobbinth deleted the andrew-implement-procref branch October 26, 2023 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement procref instruction
2 participants